package com.ysd.lis.entity.lab;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableName;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysd.lis.entity.BaseEntity;
import com.ysd.lis.entity.BaseEntity2;
import com.ysd.lis.util.compare.Compare;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * LAB_REQ_MAIN状态表
 * </p>
 *
 * @author Bai
 * @since 2024-01-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("LAB_REQ_STATE")
public class LabReqState extends BaseEntity2 {

    private static final long serialVersionUID = 1L;

    /**
     * LAB_REQ_MAIN的主键
     */
    @TableField("REQ_MAIN_ID")
    private String reqMainId;

    /**
     * 状态码
     */
    @TableField("STATE_CODE")
    private String stateCode;

    /**
     * 状态值
     */
    @TableField("STATE_VALUE")
    private String stateValue;

    /**
     * 报告单元
     */
    @TableField("RPT_GROUP")
    private String rptGroup;

    /**
     * 报告单元名称
     */
    @Compare("报告单元名称")
    @TableField(exist = false)
    private String rptGroupNa;

    /**
     * 标本号
     */
    @Compare("报告单元名称")
    @TableField("SAMPLE_NO")
    private String sampleNo;

    /**
     * 检验日期
     */
    @Compare("报告单元名称")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Timestamp sampleda;

    /**
     * 申请号
     */
    @TableField("REQ_NO")
    private String reqNo;

    /**
     * 顺序
     */
    @TableField("SEQ")
    private Long seq;

    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;

    @TableField("BATCH_NO")
    private String batchNo;

    @TableField(exist = false)
    private String realName;








}
